import request from '@/utils/request'

// 查询疫苗使用登记列表
export function listVaccinationRecords(query) {
  return request({
    url: '/btlfbreed/vaccinationRecords/list',
    method: 'get',
    params: query
  })
}

// 查询疫苗使用登记详细
export function getVaccinationRecords(recordId) {
  return request({
    url: '/btlfbreed/vaccinationRecords/' + recordId,
    method: 'get'
  })
}

// 新增疫苗使用登记
export function addVaccinationRecords(data) {
  return request({
    url: '/btlfbreed/vaccinationRecords',
    method: 'post',
    data: data
  })
}

// 修改疫苗使用登记
export function updateVaccinationRecords(data) {
  return request({
    url: '/btlfbreed/vaccinationRecords',
    method: 'put',
    data: data
  })
}

// 删除疫苗使用登记
export function delVaccinationRecords(recordId) {
  return request({
    url: '/btlfbreed/vaccinationRecords/' + recordId,
    method: 'delete'
  })
}

// 初始化下拉框
export function getOptionselect() {
  return request({
    url: '/api/optionVaccineInfoselect',
    method: 'get'
  })
}

// 初始化下拉框
export function getOptionCheckselect() {
  return request({
    url: '/api/optionCheckselect',
    method: 'get'
  })
}